#!/bin/bash
echo "ACTIVATING ENV:"@CONDA_ENVIRONMENT_NAME@
while [[ `which python` != *"@CONDA_ENVIRONMENT_NAME@"* ]]
do
    source activate @CONDA_ENVIRONMENT_NAME@
done
export DYLD_FALLBACK_LIBRARY_PATH=`python -c "import sys,os;print os.path.join(sys.prefix,'lib')"`
echo "Python:" `which python`
echo "Running: "$*
python -c "import vtk;print 'VTK_VERSION:',vtk.VTK_VERSION"
python -c "import numpy;print 'NUMPY_VERSION:',numpy.version.version"
$*
